﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Data;

namespace Mock1G3.DataAccess
{
    public class Connection
    {
        public static SqlConnection GetConnection()
        {
            //SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connMock1G3"].ConnectionString);
            SqlConnection conn = new SqlConnection(@"Data Source=QUAN-PC\SQLEXPRESS;Initial Catalog=Mock1G3;Integrated Security=True");
            if (conn.State == ConnectionState.Open)
            {
                conn.Open();
                conn.Dispose();
            }
            return conn;
        }
    }
}